package zp.demo.apitest.controller;


import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/test2")
public class TestApi2 {


    /**
     * 测试接口1
     * @return
     */
    @RequestMapping("api/v1")
    @PostMapping
    @ApiOperation("测试接口v1版本")
    public String 测试接口1()
    {

        return "测试接口1";
    }

    /**
     * 测试接口1
     * @return
     */
    @ApiOperation("测试接口v2版本")
    @RequestMapping("api/v2")
    public String 测试接口2()
    {

        return "测试接口2";
    }


}
